import React from 'react'
import { Button} from 'antd'

export class QuestionButton extends React.Component  {
    static defaultProps = {
        buttonClass: 'collapseBtn btn-question',
        iconClass: 'icon-question icons font-xl',
    };

    render () {
        const {buttonName, iconClass, buttonClass, toggle} = this.props
        return (
            <div style={{height:"100%", alignItems:'top', display:'flex' }}>
                <Button className={buttonClass} onClick={toggle}>{buttonName}<i className={iconClass} ></i></Button>
            </div>
        )
    }
}
